package com.entity;

import lombok.*;

@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Cart {

    private Integer id;
    private Integer productId;
    private Integer quantity;
    private Integer cost;
    private Integer loginId;
    private Product product;

    public Cart(Integer productId, Integer quantity, Integer cost, Integer loginId) {
        this.productId = productId;
        this.quantity = quantity;
        this.cost = cost;
        this.loginId = loginId;
    }
}
